package com.ant.xmla.datacrawling.dao;


import com.ant.xmla.datacrawling.entity.AudioBook;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


@Repository
public interface AudioBookDao extends JpaRepository<AudioBook,Integer> {

    @Query(value = "insert into audiobook (album_id, audiobookname, audiobookurl, create_time, track_id, update_time) values (?1,?2,?3,?4,?5,?6)",nativeQuery =true)
    public void saveBook(Integer album_id,String audiobookname,String audiobookurl,String create_time ,String track_id,String update_time);

}
